<?php 
class order_colmod{
    protected $colMod;
    function order_colmod()
    {
        $this->colMod=array(
            array(  
                "text"          =>"Mã Số"            
                ,"datafield"    =>"ID" 
                ,"width"        => 120    
                ),
            array(  
                "text"          =>"Ngày lập"            
                ,"datafield"    =>"OrderDate" 
                ,"width"        => 120    
                ,"cellsformat"  =>'yyyy-MM-dd'
                ,"hidden"       =>false      
                ),
            array(  
                "text"          =>"Tình trạng"            
                ,"datafield"    =>"Status" 
                ,"type"         =>"string"
                ,"columntype"   =>"dropdownlist"
                ,"width"        => 120    
                ,"filtertype"   =>"checkedlist"  
                ,"filteritems"    => array('New', 'Confirmed', 'Shipping','Canceled','Finished')
                ,"editable"     =>true
                //,"cellsformat"  =>'yyyy-MM-dd'
                //,"hidden"       =>false      
                ),
            array(  
                "text"          =>"Mã khách hàng"            
                ,"datafield"    =>"CustomerID" 
                ,"width"        => 120    
                ,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Tên khách hàng"            
                ,"datafield"    =>"CustomerName" 
                ,"width"        => 220
                ,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Người nhận"            
                ,"datafield"    =>"ShipName" 
                ,"width"        => 220    
                //,"hidden"       =>false      
                ),
            array(  
                "text"          =>"Địa chỉ"            
                ,"datafield"    =>"ShipAddress" 
                ,"width"        => 220    
                ,"hidden"       =>true       
                ),
            array(  
                "text"          =>"Mã sản phẩm"            
                ,"datafield"    =>"ProductID" 
                ,"width"        => 120    
                ,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Tên sản phẩm"            
                ,"datafield"    =>"ProductName" 
                ,"width"        => 220
                //,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Giá bán (*)"            
                ,"datafield"    =>"UnitsOnOrder" 
                ,"type"         =>"number"
                //,"width"        => 120
                ,"filterable"   =>false
                ,"cellsformat"  =>'d'
                //,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Số lượng"            
                ,"datafield"    =>"Amount" 
                ,"width"        => 60
                ,"filterable"   =>false
                //,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Thành tiền"            
                ,"datafield"    =>"Monney" 
                ,"type"         =>"number"
                //,"columntype"   =>"checkbox" //number,checkbox[threestatecheckbox],numberinput,dropdownlist,combobox,datetimeinput
                //,"threestatecheckbox"=> true
                //,"width"        => 120    
                ,"filterable"   =>false
                ,"filtertype"   =>"number"  //textbox,checkedlist,list,number,checkbox,date
                //,"editable"     =>true
                //,"sortable"     =>true       
                ,"cellsalign"   =>"right"      
                ,"cellsformat"  =>'d'
                //,"hidden"       =>true      
                ),
            array(  
                "text"          =>"Insert"            
                ,"datafield"    =>"Insert" 
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                //,"hidden"       =>true
                ),
            array(  
                "text"          =>"Update"            
                ,"datafield"    =>"Update" 
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Delete"            
                ,"datafield"    =>"Delete" 
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                ,"hidden"       =>true
                )
        );
    }
    function get(){
        return $this->colMod;
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */